package com.longteng.TestFour.appService;

import com.longteng.TestFour.CuxiaoanService;
import com.longteng.TestFour.KehuTypeStrategyFactory;

import javax.annotation.Resource;

/**
 * @Author songfangzhi
 * @create 2022/12/29 10:00
 */

public class appServiceImpl implements appService {
    @Resource
    private KehuTypeStrategyFactory kehuTypeStrategyFactory;

    @Override
    public void cuxiao(String kehuType) {
        CuxiaoanService purchaseService = kehuTypeStrategyFactory.getStrategy(kehuType);
        //调用各个客户类型的促销案
        purchaseService.cuxiao();
    }
}
